package cn.happy.day04;

public class 剪铁丝 {
    public static void main(String[] args) {
        int lone=15,sone=18,cutone=1,minone=1;
        while (cutone<=lone){
            System.out.println(cutone);
            if (lone%cutone == 0 && sone%cutone == 0){
                minone=cutone;
            }
            cutone+=1;
        }
        System.out.println(minone);
    }
}
